package com.huopaolan.yohuoshop.Di.Modules;

import com.huopaolan.yohuoshop.Mvp.Contract.HomeFragmentContract;
import com.huopaolan.yohuoshop.Mvp.Model.HomeFragmentModel;

import dagger.Module;
import dagger.Provides;

@Module
public class HomeFragmentModules {
    private HomeFragmentContract.HomeFragmentIView iView;

    public HomeFragmentModules(HomeFragmentContract.HomeFragmentIView iView) {
        this.iView = iView;
    }

    @Provides
    public HomeFragmentContract.HomeFragmentIView providerIView() {
        return iView;
    }

    @Provides
    public HomeFragmentContract.HomeFragmentIModel providerIModel() {
        return new HomeFragmentModel();
    }
}
